package expression;

/**
 * Created by luyajie on 2017/1/3.
 *
 * 等于
 */
@ExpressionAn(text = "=", common = "等于")
public class EqExpression implements Expression {
    public Object exec(Object... objs) {
        //对null进行判断
        if(null == objs[1] && null == objs[2]) {
            return true;
        } else if(null == objs[1] || null == objs[2]) {
            return false;
        }
        return objs[1].equals(objs[2]);
    }
}
